// mqtt 配置文件

export const MQTT_HOST = 'ws://127.0.0.1:1884'
const MQTT_USERNAME = 'admin'
const MQTT_PASSWORD = 'password'


function S4() {
   return (((1 + Math.random()) * 0x10000) | 0).toString(32).substring(1);
}
let MathRandom = (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
let MqttUserId = 'clientid-' + MathRandom;

export const options = {
  connectTimeout: 10000,
  clientId: "smartlab",
  // username: MQTT_USERNAME,
  // password: MQTT_PASSWORD,
  clean: true
}
